echo Logging off
pattern reset
pattern 0 "Host name:"
pattern 1 CARRIER
send off\m
wait
if match 1 end
pattern 2 OK
send +++
wait
sleep 1
send ATH0\m
: end
